package org.code.mallspringboot.service.impl;

import org.code.mallspringboot.mapper.CmsSubjectProductRelationMapper;
import org.code.mallspringboot.pojo.CmsSubjectProductRelation;
import org.code.mallspringboot.service.CmsSubjectProductRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class CmsSubjectProductRelationServiceImpl implements CmsSubjectProductRelationService{

    @Autowired
    private CmsSubjectProductRelationMapper cmsSubjectProductRelationMapper;

    @Override
    public List<CmsSubjectProductRelation> selectById(int id) {
        return cmsSubjectProductRelationMapper.selectById(id);
    }

    @Override
    public int delete(int productId) {
        return cmsSubjectProductRelationMapper.delete(productId);
    }

    @Override
    public int add(CmsSubjectProductRelation cmsSubjectProductRelation) {
        return cmsSubjectProductRelationMapper.add(cmsSubjectProductRelation);
    }
}




